package model

import (
	"time"
)

type Car struct {
	PlaceStartTime *time.Time `gorm:"column:placeStartTime"`      //创建时间
	PlaceStopTime  *time.Time `gorm:"column:placeStopTime"`       //创建时间
	CreateTime     *time.Time `gorm:"column:create_time"`         //创建时间
	ID             int        `gorm:"column:id;primary_key"`      //
	PlaceId        int        `gorm:"column:placeid;primary_key"` //

	NumberPlate string     `gorm:"column:number_plate"` //车牌
	UpdateTime  *time.Time `gorm:"column:update_time"`  //修改时间
	UserID      int        `gorm:"column:user_id"`      //关联用户表
	IsOutBound  int        `gorm:"column:isOutBound"`   //关联用户表
	IsPlay      int        `gorm:"column:isPlay"`       //关联用户表
	PlaceMemory float64    `gorm:"column:placeMemory"`
}

// TableName sets the insert table name for this struct type
func (u *Car) TableName() string {
	return "parking_car"
}
